package edu.sctu.zhoumengxue.day201505.day20150522.student;

import java.util.Iterator;
import java.util.LinkedList;

/**
 * Created by user12 on 2015/5/22.
 */
public class MainTwo {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");

        for(Iterator i=list.iterator();i.hasNext();){
            String string = (String)i.next();
            System.out.println(string);
        }
        System.out.println("/n");
        list.add("m");
        list.add("n");
        for(Iterator i=list.iterator();i.hasNext();){
            String string =(String) i.next();
            System.out.println(string);
        }
        ListAdd listAdd = new ListAdd();
        ListAdd.ListAdd();
    }
}
